home *** CD-ROM | disk | FTP | other *** search
- .----------------------.
- | |
- | freeSize OCX v1.00▀2 |
- | |
- `----------------------'
-
- INTRODUCTION
-
- For the longest time I searched for a freeware control that could handle my
- simple needs for form/control resizing. Every possible lead that I found
- resulted in a dead end. One day, my new issue of VBPJ (Visual Basic
- Programmer's Journal) had a cover article entitled "RESIZE FORMS at Run Time"
- (by Francesco Balena) and this made me very excited. I decided my only option
- was to take the wonderful information in this issue (July, 1998) and use it to
- my (and everyone else's) advantage. I took the ideas and framework provided by
- Mr. Balena and enhanced it with a few added features and bug-fixes. I plan to
- keep improving this control as long as I get new ideas and feedback from other
- programmers. So, I have decided to release this revamped VBPJ treasure to
- the public as the freeware control that I was so desperately searching for.
- This control is also royalty free.
-
- PURPOSE
-
- The purpose of freeSize is to offer your programs a way to retain their
- pleasant cosmetic look. I found myself many times changing my form's BorderStyle
- to 'fixed dialog' so the user couldn't resize the form. Sometimes this is okay,
- but other times it just won't work due to the nature of the program.
-
- USAGE
-
- To use freeSize, simply put the control on your form and set its properties
- to your desired value.
-
- PROPERTIES
-
- MinFormHeight
- The MinFormHeight property is a value at which you want the form's
- height property to be at a minimum. This will prevent the user from
- making your form too small. When set to 0, this feature is disabled.
-
- MinFormWidth
- The MinFormWidth property is a value at which you want the form's
- width property to be at a minimum. This will prevent the user from
- making your form too small. When set to 0, this feature is disabled.
-
- MaxFormHeight
- The ManFormHeight property is a value at which you want the form's
- height property to be at a maximum. This will prevent the user from
- making your form too big. When set to 0, this feature is disabled.
-
- MaxFormWidth
- The MaxFormWidth property is a value at which you want the form's
- width property to be at a maximum. This will prevent the user from
- making your form too big. When set to 0, this feature is disabled.
-
- MoveObjects
- The MoveObjects property, when set to true, will move the controls on
- your form to keep their position in the same ratio as they were at
- load-time.
-
- ResizeObjects
- The ResizeObjects property, when set to true, will change the size of the
- controls on your form to keep their size in ratio with the form's new size.
-
- ResizeFonts
- The ResizeFonts property, when set to true, will change the font
- size for any controls with text so that the text reflects the ratio
- of change in form size.
-
- OTHER OPTIONS
-
- If you want any certain control to be exempt from the changes made by
- freeSize, then simply set that control's "Tag" property to "no". The
- Tag property is basically just a property that VB doesn't use and it is
- only there to hold additional information your program might use.
-
- LET DOWNS
-
- There is really only one thing that I wish was a bit more refined. The
- properties that restrict form height and width are designed in a rather simple
- way. Because of their simplicity, I am not totally pleased with their
- functionality. The problem is that when the form is resized to an 'invalid'
- size, the form's size will jump back and forth because freeSize and the OS are,
- in theory, "fighting" for control of the form's dimensions. I have had some code
- e-mailed to me on this issue. I am still attempting to iron it all out so it
- will work within an OCX, but things should hopefully be all set for the next
- release.
-
- FINAL REQUEST
-
- As the author of this control, I ask you to only do one simple thing:
- E-MAIL ME!! I greatly want to hear about your experiences with my control and
- any improvements/changes you would like to see. This control is provided for
- you, and if you don't tell me how you want it, there is no way it will get to
- be how you want it. So, e-mail me with all comments/questions/critiques.
-
- Thank you for reading this far :)
-
- -- Shaun McPeck (shaun.mcpeck@wmich.edu)
-
-
- Release history:
- (-) Bug
- (+) Addition
- (*) Fix
-
- 02/09/99 v1.00 beta
-
- (-) Run-Time Error when KeepRatio = TRUE and the form is maximized.
- (-) When KeepRatio = TRUE, resizing does not work properly.
-
- 05/13/99 v1.00 beta2
-
- (*) Not sure if this is really a "fix" :) But the KeepRatio property
- was removed due to the problems it caused. If anyone really wants
- this property reimplemented, please let me know and I will work
- on it. Otherwise, don't look for KeepRatio anytime in the near
- future.
- (+) freeSize now sports its own icon. (Thanks, ??????!!)
- (+) ResizeObjects property added to give more control over freeSize.
-
- Future Ideas:
-
- In the next release, expect for freeSize to be smart and have a read-only
- property called CtrlList or something similar. This will have a list of all
- controls on your form and you will be able to select a KeepRatio, ResizeFont,
- MoveControl, etc, etc, etc for each control on your form. This will give you
- a lot more flexibility as to how freeSize acts on different controls.
-
- I also intend to have freeSize position and size your form at load-time so
- the form will be in a nice position on the screen and also have a reasonable
- size. This will solve the problem of running a program developed in 1024x768
- mode on a machine that is in 800x600 mode.